class->owner_change = gtk_clipboard_owner_change;
- /**
- * GtkClipboard::owner-change:
- * @clipboard:
- * @event: (type GdkEventOwnerChange):
- */
clipboard_signals[OWNER_CHANGE] =
g_signal_new (I_("owner-change"),
G_TYPE_FROM_CLASS (gobject_class),
g_object_unref (clipboard);
}
-/**
- * gtk_clipboard_get_for_display:
- * @display:
- * @selection:
- *
- * Returns: (transfer none):
- */
GtkClipboard *
gtk_clipboard_get_for_display (GdkDisplay *display,
GdkAtom selection)
return clipboard_peek (display, selection, FALSE);
}
-/**
- * gtk_clipboard_get:
- * @selection:
- *
- * Returns: (transfer none):
- */
GtkClipboard *
gtk_clipboard_get (GdkAtom selection)
{
return TRUE;
}
-/**
- * gtk_clipboard_set_with_data: (skip)
- * @clipboard:
- * @targets: (array length=n_targets):
- * @n_targets:
- * @get_func: (scope async):
- * @clear_func: (scope async):
- * @user_data:
- */
gboolean
gtk_clipboard_set_with_data (GtkClipboard *clipboard,
const GtkTargetEntry *targets,
FALSE);
}
-/**
- * gtk_clipboard_set_with_owner: (skip)
- * @clipboard:
- * @targets: (array length=n_targets):
- * @get_func: (scope async):
- * @clear_func: (scope async):
- * @owner:
- */
gboolean
gtk_clipboard_set_with_owner (GtkClipboard *clipboard,
const GtkTargetEntry *targets,
TRUE);
}
-/**
- * gtk_clipboard_get_owner:
- * @clipboard:
- *
- * Returns: (transfer none):
- */
GObject *
gtk_clipboard_get_owner (GtkClipboard *clipboard)
{
gtk_target_list_unref (list);
}
-/**
- * gtk_clipboard_request_contents:
- * @clipboard:
- * @target:
- * @callback: (scope async):
- * @user_data:
- */
void
gtk_clipboard_request_contents (GtkClipboard *clipboard,
GdkAtom target,
gtk_selection_data_free (data);
}
-/**
- * gtk_clipboard_request_text:
- * @clipboard:
- * @callback: (scope async):
- * @user_data:
- */
void
gtk_clipboard_request_text (GtkClipboard *clipboard,
GtkClipboardTextReceivedFunc callback,
g_free (data);
}
-/**
- * gtk_clipboard_request_rich_text:
- * @clipboard:
- * @buffer:
- * @callback: (scope async):
- * @user_data:
- */
void
gtk_clipboard_request_rich_text (GtkClipboard *clipboard,
GtkTextBuffer *buffer,
}
-/**
- * gtk_clipboard_wait_for_rich_text:
- * @clipboard:
- * @buffer:
- * @format: (out):
- * @length: (out):
- *
- * Returns: (nullable):
- */
guint8 *
gtk_clipboard_wait_for_rich_text (GtkClipboard *clipboard,
GtkTextBuffer *buffer,
return NULL;
}
-/**
- * gtk_clipboard_request_image:
- * @clipboard:
- * @callback: (scope async):
- * @user_data:
- */
void
gtk_clipboard_request_image (GtkClipboard *clipboard,
GtkClipboardImageReceivedFunc callback,
g_object_unref (pixbuf);
}
-/**
- * gtk_clipboard_request_uris:
- * @clipboard:
- * @callback: (scope async):
- * @user_data:
- */
void
gtk_clipboard_request_uris (GtkClipboard *clipboard,
GtkClipboardURIReceivedFunc callback,
g_strfreev (uris);
}
-/**
- * gtk_clipboard_request_targets:
- * @clipboard:
- * @callback: (scope async):
- * @user_data:
- */
void
gtk_clipboard_request_targets (GtkClipboard *clipboard,
GtkClipboardTargetsReceivedFunc callback,
callback (clipboard, targets, n_targets, user_data);
}
-/**
- * gtk_clipboard_wait_for_contents:
- * @clipboard:
- * @target:
- *
- * Returns: (nullable):
- */
GtkSelectionData *
gtk_clipboard_wait_for_contents (GtkClipboard *clipboard,
GdkAtom target)
return selection_data;
}
-/**
- * gtk_clipboard_wait_for_text:
- * @clipboard:
- * @target:
- *
- * Returns: (nullable):
- */
gchar *
gtk_clipboard_wait_for_text (GtkClipboard *clipboard)
{
return result;
}
-/**
- * gtk_clipboard_wait_for_image:
- * @clipboard:
- *
- * Returns: (nullable) (transfer full):
- */
GdkPixbuf *
gtk_clipboard_wait_for_image (GtkClipboard *clipboard)
{
return NULL;
}
-/**
- * gtk_clipboard_wait_for_uris:
- * @clipboard:
- *
- * Returns: (nullable) (array zero-terminated=1):
- */
gchar **
gtk_clipboard_wait_for_uris (GtkClipboard *clipboard)
{
return NULL;
}
-/**
- * gtk_clipboard_get_display:
- * @clipboard:
- *
- * Returns: (transfer none):
- */
GdkDisplay *
gtk_clipboard_get_display (GtkClipboard *clipboard)
{
return result;
}
-/**
- * gtk_clipboard_wait_for_targets:
- * @clipboard:
- * @targets: (out) (array length=n_targets):
- * @n_targets: (out):
- */
gboolean
gtk_clipboard_wait_for_targets (GtkClipboard *clipboard,
GdkAtom **targets,
{
}
-/**
- * gtk_clipboard_set_can_store:
- * @clipboard:
- * @targets: (allow-none) (array length=n_targets):
- * @n_targets:
- */
void
gtk_clipboard_set_can_store (GtkClipboard *clipboard,
const GtkTargetEntry *targets,